package com.wlf.admin.system.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.Data;

/**
 * 系统机构表
 */
@Data
@TableName(value = "sys_organ")
public class SysOrgan implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父级ID
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 机构编号
     */
    @TableField(value = "`organ_no`")
    private String organNo;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 状态,true启用，false禁用
     */
    @TableField(value = "`status`")
    private Boolean status;

    /**
     * 是否展示子集关联数据
     */
    @TableField(value = "show_children")
    private Boolean showChildren;

    /**
     * 排序
     */
    @OrderBy(asc = true)
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 备注信息
     */
    @TableField(value = "remark")
    private String remark;

    private static final long serialVersionUID = 1L;
}